Home > Flex, youtube > Flex Youtube Interface

Flex Youtube Interface

Update: 4 Nov 2009

Proxy file is changed again!!! to get the correct flv url.

Thanks to NGCoders for the php proxy.

This is a simple youtube interface created in flex using the as3-youtube-data-api . I also used the Flex Video Player from http://www.fxcomponents.com/ and Kingnare theme from Scalenine.

Right Click to view the Source .

Click here or on the image below to view the app

fxtube

Categories: Flex, youtube
  1. Georgi
    March 1, 2009 at 11:32 pm

    I used your application in an implementation of mine.

    However as soon as I upload it on a web server – security warnings prevent it from working. I read about the PHP stub file but did not understand anything.

    Can you please tell me how you got round the problem in your app. I am using the same method.

  2. Daquan
    March 3, 2009 at 6:33 am

    Just dropping by.Btw, you website have great content!

  3. subeesh
    March 4, 2009 at 4:27 am

    Hello Georgi,

    I am using a .NET stub file, but in both cases the purpose is the same. What it does is when we pass in the mediaPlayerUri (ie the link to the html page with the video), it downloads the html page in text format and returns the text to the flex application. Flex application parses the received text and finds out the required ids.

    Hope that may help you

    Subeesh

  4. Dhawan
    March 18, 2009 at 9:52 pm

    Hi,
    I just downloaded your source code, apparently the application runs fine. When I launch it I get an error “sercurity error acessing url”. The search feature works fine, but when I double click a video to watch, I get the same error message. Could you perhaps help me out how to solve this error?

  5. Dhawan
    March 24, 2009 at 11:17 pm

    Hi Subeesh,
    Could you help me out with the issue, as it is becoming quite urgent now.

    Thanks

  6. subeesh
    March 25, 2009 at 4:31 am

    You are getting that error because, when you upload the application to the server, it is trying to access the proxy file from my test server.This causes a crossdomain issue.

    You have to create your own proxy and put it in the same server you are uploading the application or some other server where you have access and refer that proxy from your application.

    Hope that helps

  7. Jigar P.
    April 8, 2009 at 3:48 pm

    Subeesh, Thanks for the help with getting started with YouTube in Flex 3. I have a question to the legitimy of this approach.

    I implemented your approach online and connected to my own server, but with-in a couple days my Videos, no longer played. I was still able to access the feeds, which are done through the YouTube API. However, the parsing of the HTML page and pulling the videoID does not seem to be a practice YouTube likes.

    I ended up having to use the Tubeloc project video display in conjunction with your feed display to get everything to work right.

    So, I was just wondering if you have any thoughts on this. I’m wondering why your site is still able to play the YouTube videos in this manor? Any thoughts would be appreciated.

    Thanks,
    Jigar

  8. July 20, 2009 at 10:20 am

    hey the video doesnt load …
    pls can u let us kno

  9. July 22, 2009 at 8:40 am

    Thanks to sharing ur codes

  10. reang
    October 31, 2009 at 8:07 pm

    can u fix this code? i can’t load the video

    • subeesh
      November 4, 2009 at 8:14 pm

      It is working now

  11. Niket
    November 23, 2009 at 1:55 pm

    The videos here dont play. Just the loading sign goes on and on.

    http://keystrokesinc.info/test/subeesh/YoutubeFlex.html

    The app looks very nice. So a working link would be appreciated.

    • subeesh
      November 23, 2009 at 2:56 pm

      There is some issue with the PHP server. The code will work if you copy the php code to your server

  12. Alejandro
    October 1, 2011 at 12:40 am

    Hey, i want to develop an app like yours with a different modifications for a project, but the thing is that i don’t know much about this plattform, do you know of any good course, manual or tutorial, that could help me to develop my own app.

  1. October 1, 2009 at 11:27 am

Leave a comment